const path = require('path');
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin')

module.exports = {
    productionSourceMap: false,
    publicPath: process.env.NODE_ENV === 'production' ? './' : '/',
    lintOnSave: false,
    configureWebpack: {
        devtool: 'source-map',
        resolve: {
            alias: {
                '@': path.resolve(__dirname, 'src'),
            },
        },
        plugins: [
            new MonacoWebpackPlugin({
                languages: ['json']
            })
        ]
    }
};
